package 多线程.通讯;

public class Input implements Runnable{
    private Storage st;
    int num;

    Input(Storage st){
        this.st = st;
    }

    @Override
    public void run() {
        while (true){
            st.put(num++);
        }
    }
}
